package com.lezhi.socialgram.service.im;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.*;

/**
 * Created by daizhen on 2017/3/29.
 */
@FeignClient(value = "social-immediately-message")
public interface IMService {

    @RequestMapping(value = "/online/{id}", method = RequestMethod.GET)
    void connect(@PathVariable("id") Long userId);

    @RequestMapping(value = "/offline/{userId}", method = RequestMethod.GET)
    void disConnect(@PathVariable("userId") Long userId);


}
